package com.vhuomai.wechat.mapper;

import com.vhuomai.mybatis.mapper.auto.AutoMapper;
import com.vhuomai.wechat.constant.ReplyEvent;
import com.vhuomai.wechat.entity.BaseWxReply;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author harris
 */
@Mapper
public interface WxReplyMapper extends AutoMapper<BaseWxReply, Integer> {
    
    BaseWxReply findByEvent(@Param("merchantNo") Integer merchantNo,
                            @Param("event") ReplyEvent event,
                            @Param("eventKey") String eventKey);
    
    List<BaseWxReply> findByMerchant(@Param("merchantNo") Integer merchantNo);
}
